﻿export default [
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  //页面路由
  {
    path: '/welcome',
    name: 'welcome',
    component: './Welcome',
    access: 'access',
  },
  {
    path: '/admin',
    name: '系统设置',
    access: 'access',
    routes: [
      {
        path: '/admin',
        redirect: '/admin/access',
      },
      {
        path: '/admin/access',
        name: '角色管理',
        component: './sys_set/access',
        access: 'access',
      },
      {
        path: '/admin/user',
        name: '用户管理',
        component: './sys_set/user',
        access: 'access',
      },
      {
        path: '/admin/route',
        name: '菜单管理',
        component: './sys_set/route',
        access: 'access',
      },
      {
        path: '/admin/job',
        name: '岗位管理',
        component: './sys_set/job',
        access: 'access',
      },
      {
        path: '/admin/department',
        name: '部门管理',
        component: './sys_set/department',
        access: 'access',
      },
      {
        path: '/admin/field',
        name: '字典管理',
        component: './sys_set/field',
        access: 'access',
      },
    ],
  },
  //404路由
  {
    component: './404',
  },
];
